# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
# Contributor: Bruce <b_a_g99@hotmail.com>

pkgname=groovy-docs
pkgver=4.0.15
pkgrel=2
pkgdesc='Documentation for the Groovy programming language'
url='https://groovy-lang.org/'
license=('APACHE')
arch=('any')
validpgpkeys=('34441E504A937F43EB0DAEF96A65176A0FB1CD0B') # Paul King <paulk@apache.org>
source=("https://groovy.jfrog.io/artifactory/dist-release-local/groovy-zips/apache-groovy-docs-$pkgver.zip"
        "https://downloads.apache.org/groovy/$pkgver/distribution/apache-$pkgname-$pkgver.zip.asc")
sha256sums=('2422c25d20448bbfd77d0c927cc99b720ed7ceca72b58bcfdb509ad365ea0ecf'
            'SKIP')
b2sums=('3c12266d8c499d9b6ee3979d1bf32b936db30c7d0abbd6181ffa379123c32bbd8ef316171c470a6fca7a419b88077e14bd61d314f488abb67388d3c2db9bc24a'
        'SKIP')

prepare() {
  find "$srcdir" -type f -exec chmod -x {} \;
}

package() {
  install -d "$pkgdir/usr/share/doc/groovy-$pkgver"
  cp -r "groovy-$pkgver" "$pkgdir/usr/share/doc/"
}
